package com.example.healthsystem.service;

import com.example.healthsystem.entity.*;

import java.sql.Timestamp;
import java.util.List;

public interface UserService {
    // === user Register ===
    // --- allow user register student/teacher ==> Only [admin] can do it
    void registerUser(user user);

    // ===  search user infomation ==>only [admin] can do it
    List<user> findAlluser(int pageNum,int pageSize);

    String haveId(String username);

    // ---根据账号查询个人信息
    user findUserByUsernameAndPassword(String username,String password);
    // --- 仅通过用户名即可返回用户信息
    user finduserByusername(String username);

    // === change Infomation ===
    // --- 管理员 修改用户所有信息
    void adminchangeProfile(user user);
    // --- 用户  修改信息
    void userchangeProfile(user user);

    // === delete user ===
    void deleteUser(String username);


}
